import request from '@/utils/request'

// 查询库存操作日志列表
export function listInventoryLog(query) {
  return request({
    url: '/wms/inventoryLog/list',
    method: 'get',
    params: query
  })
}

// 查询库存操作日志详细
export function getInventoryLog(logId) {
  return request({
    url: '/wms/inventoryLog/' + logId,
    method: 'get'
  })
}

// 新增库存操作日志
export function addInventoryLog(data) {
  return request({
    url: '/wms/inventoryLog',
    method: 'post',
    data: data
  })
}

// 修改库存操作日志
export function updateInventoryLog(data) {
  return request({
    url: '/wms/inventoryLog',
    method: 'put',
    data: data
  })
}

// 删除库存操作日志
export function delInventoryLog(logId) {
  return request({
    url: '/wms/inventoryLog/' + logId,
    method: 'delete'
  })
}